package com.rnkrsoft.suyan.config.server.config.entity;

import com.rnkrsoft.framework.orm.PrimaryKey;
import com.rnkrsoft.framework.orm.PrimaryKeyStrategy;
import com.rnkrsoft.framework.orm.jdbc.*;
import com.rnkrsoft.suyan.config.internal.enums.EnvironmentStatusEnum;
import lombok.*;
/**
 * Created by woate on 2018/5/13.
 */
@Data
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "ENVIRONMENT_INFO", prefix = "TB")
@Comment("环境信息表")
public class EnvironmentInfoEntity extends BaseEntity {
    @PrimaryKey(strategy = PrimaryKeyStrategy.UUID)
    @StringColumn(name = "ENVIRONMENT_ID", nullable = false)
    @Comment("环境信息编号")
    String environmentId;

    @StringColumn(name = "PROJECT_ID")
    @Comment("环境编号")
    String projectId;


    @StringColumn(name = "VERSION_ID")
    @Comment("版本编号")
    String versionId;

    @NumberColumn(name = "ENVIRONMENT_TYPE")
    @Comment("环境类型")
    Integer environmentType;

    @StringColumn(name = "ENVIRONMENT_NAME")
    @Comment("环境名，英文名称")
    String environmentName;

    @StringColumn(name = "ENVIRONMENT_DESC")
    @Comment("环境描述")
    String environmentDesc;

    @NumberColumn(name = "ENVIRONMENT_STATUS", defaultValue = "1", enumClass = EnvironmentStatusEnum.class)
    @Comment("环境状态")
    Integer environmentStatus;
}
